package com.xc.freeapp.entity;


import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;




public class FreeRegPhone {
    private Integer id;

    private Integer appid;
    @ApiModelProperty(value="用户id")
    private Integer userid;
    @ApiModelProperty(value="科室id")
    private Integer deptid;
    @ApiModelProperty(value="症状描述")
    private String issuedesc;
    @NotNull(message="类型不能为空")
    @ApiModelProperty(value="1:通话，2：预约")
    private Integer type;
    @Pattern(regexp="^[1][3,4,5,8,7][0-9]{9}$",message="手机号码错误")
    @ApiModelProperty(value="电话号码")
    private String telphone;

    private Integer createby;

    private Date createtime;

    private Integer updateby;

    private Date updatetime;

    private Date regdatetime;

    private String delflag;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAppid() {
        return appid;
    }

    public void setAppid(Integer appid) {
        this.appid = appid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public String getIssuedesc() {
        return issuedesc;
    }

    public void setIssuedesc(String issuedesc) {
        this.issuedesc = issuedesc == null ? null : issuedesc.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone == null ? null : telphone.trim();
    }

    public Integer getCreateby() {
        return createby;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getUpdateby() {
        return updateby;
    }

    public void setUpdateby(Integer updateby) {
        this.updateby = updateby;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getRegdatetime() {
        return regdatetime;
    }

    public void setRegdatetime(Date regdatetime) {
        this.regdatetime = regdatetime;
    }

    public String getDelflag() {
        return delflag;
    }

    public void setDelflag(String delflag) {
        this.delflag = delflag == null ? null : delflag.trim();
    }
}